﻿using System.Web.Mvc;
using Promike.site.Models;

namespace Promike.site.Controllers
{
    public class BaseController : Controller
    {
        private readonly IPhotoRepository photoRepository;

        public BaseController(IPhotoRepository photoRepository)
        {
            this.photoRepository = photoRepository;
        }

        public ActionResult Index()
        {
            var model = photoRepository.GetAllVisibleCycle();
            return View("Index", model);
        }

        [Authorize(Users = "Admin")]
        public ActionResult Admin()
        {
            return View();
        }

        public ActionResult Agreement()
        {
            return View();
        }

        public ActionResult Contact()
        {
            return View();
        }
    }
}
